<template>
  <div class="svgBox">
    <img class="imgTo" :src="iconConfig[props.iconClass]" alt="">
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
const props = defineProps({
  iconClass: {
    type: String,
    required: true
  }
})

const iconConfig = ref<any>({
  'wenjianduqu': '/svgs/wenjianduqu.svg',
  'jiedianguanli': '/svgs/jiedianguanli.svg',
  'yuchuli': '/svgs/yuchuli.svg',
  '_keshihua': '/svgs/_keshihua.svg',
  'tongjifenxi': '/svgs/tongjifenxi.svg',
  'tezhenggongcheng': '/svgs/tezhenggongcheng.svg',
  'jiqixuexi': '/svgs/jiqixuexi.svg',
  'peixunpinggu': '/svgs/peixunpinggu.svg',
  'pingtaigongneng': '/svgs/peixunpinggu.svg',
  'moxingxunlian': '/svgs/moxingxunlian.svg',
})

</script>

<style lang="scss" scoped>
.svgBox {
  margin-right: 5px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 4px;
}

.imgTo {
  vertical-align: middle;
  background: white;
  border-radius: 3px;
  padding: 2px;
}
</style>
